package wechat.handler.bean.response.event.message;

import org.dom4j.DocumentException;

import wechat.handler.bean.response.EventMessageBean;


/**
 * 上报地理位置事件
 * Event：  LOCATION
 *
 */
public class LocationEvent extends EventMessageBean {
	private String Latitude;  // 地理位置纬度
	private String Longitude; // 地理位置经度
	private String Precision; // 地理位置精度
	
	public LocationEvent(String str) throws DocumentException {
		super(str);
	}
	
	public LocationEvent(){
		
	}
	
	public String getLatitude() {
		return Latitude;
	}

	public void setLatitude(String latitude) {
		Latitude = latitude;
	}

	public String getLongitude() {
		return Longitude;
	}

	public void setLongitude(String longitude) {
		Longitude = longitude;
	}

	public String getPrecision() {
		return Precision;
	}

	public void setPrecision(String precision) {
		Precision = precision;
	}
	
	
	
	protected static final String Xpath_Latitude = "/xml/Latitude";
	protected static final String Xpath_Longitude = "/xml/Longitude";
	protected static final String Xpath_Precision = "/xml/Precision";
	
	public void transform() throws Exception {
		super.transform();
		this.setLatitude(getNodeText(Xpath_Latitude));
		this.setLongitude(getNodeText(Xpath_Longitude));
		this.setPrecision(getNodeText(Xpath_Precision));
	}

	
}
